package calvin.study.springboot.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import calvin.study.springboot.model.Pet;
import calvin.study.springboot.model.User;

@Configuration(proxyBeanMethods = false)
public class MyConfig {

	@Bean
	public User user() {
		User calvin = new User();
		return calvin;
	}

	@Bean
	public Pet pet() {
		return new Pet("tomcat", 2);
	}

}
